﻿using System.Web.Mvc;

namespace HanGu.CRM.Areas.Message
{
    public class MessageAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Message";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //context.MapRoute(
            //     "Message_default3",
            //     "Message/{controller}/{action}/{actionType}/{id}/{guid}",
            //     new { action = "Index", actionType = UrlParameter.Optional, id = UrlParameter.Optional, guid = UrlParameter.Optional }
            // );
            context.MapRoute(
                  "Message_default2",
                  "Message/{controller}/{action}/{id}/{guid}",
                  new { action = "Index", id = UrlParameter.Optional, guid = UrlParameter.Optional }
              );
            context.MapRoute(
                "Message_default",
                "Message/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
